﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="CurrencyExchange.aspx.cs" Inherits="Chinesys.UI.Exchange.CurrencyExchange" %>

<%@ MasterType VirtualPath="~/Site.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link type="text/css" rel="Stylesheet" href="../Styles/CustomStyles.css" />
</asp:Content>
<asp:Content runat="server" ID="currencyContainer" ContentPlaceHolderID="MainContent">
    <div class="note">
        Las cotizaciones obtenidas por este servicio son las que se utilizan para realizar las converciones a 
        pesos argentinos para los articulos cuyos precios estan expresados en dolares.
        Para obtener los valores se utilizan los servicios financieros de Yahoo! (<a href="http://finance.yahoo.com/currency-converter" target="_blank">Yahoo! Finance</a>)
    </div>
    <div>
        <asp:Table ID="TableDemo" runat="server" CellSpacing="3">
            <asp:TableRow ID="TableRow1" runat="server">
                <asp:TableCell ID="TableCell1" runat="server" HorizontalAlign="Left">
                    Moneda Origen:
                </asp:TableCell>
                <asp:TableCell ID="TableCell2" runat="server" HorizontalAlign="Left">
                    <asp:DropDownList ID="DropDownListFrom" runat="server" ></asp:DropDownList>
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow2" runat="server">
                <asp:TableCell ID="TableCell3" runat="server">
                    Moneda Destino:
                </asp:TableCell>
                <asp:TableCell ID="TableCell4" runat="server">
                    <asp:DropDownList ID="DropDownListTo" runat="server" ></asp:DropDownList>
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow3" runat="server">
                <asp:TableCell>
                </asp:TableCell>
                <asp:TableCell ID="TableCell5" runat="server" HorizontalAlign="Left">
                    <asp:CheckBox ID="CheckBoxAdjust" runat="server" Checked="true" Text="Adjust to Local Date/Time" Visible="false" />
                </asp:TableCell>
            </asp:TableRow>
            <asp:TableRow ID="TableRow4" runat="server">
                <asp:TableCell>
                </asp:TableCell>
                <asp:TableCell ID="TableCell6" runat="server" HorizontalAlign="Center">
                    <asp:Button ID="ButtonConvert" runat="server" Text="Obtener Cotización" OnClick="ConvertCurrencies" />
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>
        
        <br />
        
        <asp:Table ID="TableMessage" runat="server" Width="500" Visible="false">
            <asp:TableRow runat="server" ID="TableMessageRow">
                <asp:TableCell ID="TableCell7" runat="server" HorizontalAlign="Left">
                    <asp:Label ID="LabelMsg" runat="server" Text=""></asp:Label>
                </asp:TableCell>
            </asp:TableRow>
        </asp:Table>
        
        <br />
        
        <asp:Table ID="TableData" runat="server" Visible="false" BorderStyle="Double" GridLines="Both">
            <asp:TableHeaderRow ID="TableHeaderRow1" runat="server" BackColor="LightSkyBlue" Font-Bold="true" BorderStyle="Solid" BorderWidth="1" >
                <asp:TableHeaderCell ID="TableHeaderCell1" runat="server" HorizontalAlign="Center" Width="50">
                    Moneda Origen
                </asp:TableHeaderCell>
                <asp:TableHeaderCell ID="TableHeaderCell2" runat="server" HorizontalAlign="Center" Width="50">
                    Moneda Destino
                </asp:TableHeaderCell>
                <asp:TableHeaderCell ID="TableHeaderCell3" runat="server" HorizontalAlign="Right" Width="100">
                    Precio Actual
                </asp:TableHeaderCell>
                <asp:TableHeaderCell ID="TableHeaderCell4" runat="server" HorizontalAlign="Center" Width="150">
                    Ultima actualización
                </asp:TableHeaderCell>
                <asp:TableHeaderCell ID="TableHeaderCell5" runat="server" HorizontalAlign="Right" Width="100">
                    Min
                </asp:TableHeaderCell>
                <asp:TableHeaderCell ID="TableHeaderCell6" runat="server" HorizontalAlign="Right" Width="100">
                    Max
                </asp:TableHeaderCell>
            </asp:TableHeaderRow>
            <asp:TableRow ID="TableRow5" runat="server" BorderStyle="Solid" BorderWidth="1">
                <asp:TableHeaderCell ID="TableHeaderCell7" runat="server" HorizontalAlign="Center" Width="50">
                    <asp:Label ID="LabelResFrom" runat="server" Font-Bold="false"></asp:Label>
                </asp:TableHeaderCell>
                <asp:TableHeaderCell ID="TableHeaderCell8" runat="server" HorizontalAlign="Center" Width="50">
                    <asp:Label ID="LabelResTo" runat="server" Font-Bold="false"></asp:Label>
                </asp:TableHeaderCell>
                <asp:TableHeaderCell ID="TableHeaderCell9" runat="server" HorizontalAlign="Right" Width="100">
                    <asp:Label ID="LabelResPrice" runat="server" Font-Bold="false"></asp:Label>
                </asp:TableHeaderCell>
                <asp:TableHeaderCell ID="TableHeaderCell10" runat="server" HorizontalAlign="Center" Width="150">
                    <asp:Label ID="LabelResDate" runat="server" Font-Bold="false"></asp:Label>
                </asp:TableHeaderCell>
                <asp:TableHeaderCell ID="TableHeaderCell11" runat="server" HorizontalAlign="Right" Width="100">
                    <asp:Label ID="LabelResMin" runat="server" Font-Bold="false"></asp:Label>
                </asp:TableHeaderCell>
                <asp:TableHeaderCell ID="TableHeaderCell12" runat="server" HorizontalAlign="Right" Width="100">
                    <asp:Label ID="LabelResMax" runat="server" Font-Bold="false"></asp:Label>
                </asp:TableHeaderCell>
            </asp:TableRow>
        </asp:Table>
    
    </div>
</asp:Content>
